package com.example.javabasic.shejimoshi.jianzaozhe.demo1;
//建造者模式
public class Test {
    public static void main(String[] args) {
        //创建具体建造者
        Builder builder  = new ConcreteBuilder();
        //创建指挥者 放入建造者
        Director director = new Director(builder);
        //开始组装构建
        Product product = director.construct();
        //查看构建后的内容
        product.show();
    }

}
